/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.KhachHangDAO;
import com.miracleteam.miracle.dao.daoImpl.KhachHangDAOImpl;
import com.miracleteam.miracle.entities.Khachhang;
import com.miracleteam.miracle.services.KhachHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class KhachHangServiceImpl implements KhachHangService {

    public Khachhang LayKhachHang(String ma) {
        KhachHangDAO khDao=new KhachHangDAOImpl();
        return khDao.LayKhachHang(ma);
    }
     public Khachhang KiemTraDangNhap(String tenDangNhap,String MatKhau)
     {
         
         KhachHangDAO khDao=new KhachHangDAOImpl();
         return khDao.KiemTraDangNhap(tenDangNhap,MatKhau);
     }
       public String PhatSinhMaKhachHang()
       {
           KhachHangDAO khDao=new KhachHangDAOImpl();
         return khDao.PhatSinhMaKhachHang();
       }
        public Khachhang  KiemTraTenTruyCapDaTonTai(String ten){
             KhachHangDAO khDao=new KhachHangDAOImpl();
             return khDao.KiemTraTenTruyCapDaTonTai(ten);
         }
    
}
